<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/style.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />

	<?php 
		$cs=Yii::app()->clientScript;
		$cs->scriptMap=array('jquery.js'=>'/js/jquery-1.4.4.min.js');
	 ?>
	<?php Yii::app()->clientScript->registerScriptFile(CHtml::asset(Yii::getPathOfAlias('webroot.themes.classic.views.layouts.assets').'/jquery.form.js'));?>
	<?php Yii::app()->clientScript->registerScriptFile(CHtml::asset(Yii::getPathOfAlias('webroot.themes.classic.views.layouts.assets').'/highslide.js'));?>

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>
<div id="overlay" class="overlay"></div>
<div class="wrapper">
	<div class="header">
		<div class="title">
			<h1><a title="<?php echo Yii::app()->name?>" href="/"><?php echo Yii::app()->name?></a></h1>
			<p>Enter description...</p>
		</div>
		<?php $this->widget('LoginBox') ?>
	</div>
	<div class="main">
		<div class="flashes">
			<?php if(Yii::app()->user->hasFlash('success')): ?>
			    <div class="flash-success">
			        <?php echo Yii::app()->user->getFlash('success'); ?>
			    </div>
			<?php endif; ?>
			<?php if(Yii::app()->user->hasFlash('error')): ?>
			    <div class="flash-error">
			        <?php echo Yii::app()->user->getFlash('error'); ?>
			    </div>
			<?php endif; ?>
			<?php if(Yii::app()->user->hasFlash('notice')): ?>
			    <div class="flash-notice">
			        <?php echo Yii::app()->user->getFlash('notice'); ?>
			    </div>
			<?php endif; ?>
		</div>
		
		<?php echo $content; ?>
	</div>
	<div class="left_side">
		<h2>Рубрикатор:</h2>
		<?php $this->widget('application.components.Tree'); ?>
	
	</div>
	<div class="right_side">
		<?php $this->widget('DealOnBonus') ?>
	</div>
	<div class="footer">
		<p><a href="/">Link</a> / <a href="/">Link</a> /<a href="/">Link</a> /<a href="/">Link</a> /<a href="/">Link</a></p>
	</div>
</div>

<script type='text/javascript'>
	/* <![CDATA[ */
	
		$(document).ready(function(){
			$("#overlay").css("height", $(document).height());
		})	
	
	/* ]]> */
</script>

</body>
</html>